﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Notes.aspx.cs" Inherits="MemberMgr.Website.Notes" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body > 
    <form id="form1" runat="server">
    <ext:ResourceManager runat="server" Locale="zh-CN" />
    <ext:Store ID="noteStore" runat="server" OnRefreshData="noteStore_RefreshData" OnSubmitData="noteStore_Submit">
        <Reader>
            <ext:JsonReader>
                <Fields>
                    <ext:RecordField Name="ID" Type="Int" />
                    <ext:RecordField Name="NOTETOPIC" />
                    <ext:RecordField Name="NOTECONTENT" />
                    <ext:RecordField Name="NOTETIME" Type="Date" DateFormat="yyyy-MM-ddTHH:mm:ss" />
                    <ext:RecordField Name="NOTEUSER" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Viewport runat="server" Layout="Fit">
        <Items>
            <ext:Panel ID="notePanel" runat="server" Padding="15" Title="" Layout="Center"
                PaddingSummary="2px 0px">
                <Items>
                    <ext:GridPanel ID="gpNotes" runat="server" StoreID="noteStore" Title="系统公告"
                         Height="320" AutoExpandColumn="Content">
                        <ColumnModel ID="cmNotes" runat="server">
                            <Columns>
                                <ext:RowNumbererColumn />
                                <ext:Column ColumnID="Topic" Header="公告" Width="110" DataIndex="NOTETOPIC">
                                </ext:Column>
                                <ext:Column  ColumnID="Content" Header="内容" Width="150" DataIndex="NOTECONTENT"  RightCommandAlign="true" >
                                </ext:Column>
                                <ext:DateColumn Header="发布时间" Width="110" DataIndex="NOTETIME" Format="Y/m/d H:mm:ss" />
                                <ext:Column Header="发布者" Width="75" DataIndex="NOTEUSER">
                                </ext:Column>
                            </Columns>
                        </ColumnModel>
                        <SelectionModel>
                            <ext:RowSelectionModel ID="rowSelModeNote" runat="server" />
                        </SelectionModel>
                        <LoadMask ShowMask="true" />
                        <BottomBar>
                            <ext:PagingToolbar ID="pageTool" runat="server" PageSize="10" StoreID="noteStore" />
                        </BottomBar>
                    </ext:GridPanel>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
